import 'package:blibli/config/app-colors.dart';
import 'package:flutter/material.dart';

class TopHeader extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Row(
      children: [
        Image.asset('assets/images/logo.png', height: 40),
        Expanded(
          child: Container(
            height: 30,
            margin: EdgeInsets.symmetric(horizontal: 15),
            decoration: BoxDecoration(
              color: AppColors.page,
              borderRadius: BorderRadius.circular(30),
            ),
            child: Row(
              crossAxisAlignment: CrossAxisAlignment.center,
              children: [
                Padding(
                  padding: const EdgeInsets.only(left: 10, right: 2),
                  child: Icon(
                    Icons.search,
                    size: 16,
                    color: AppColors.un3active,
                  ),
                ),
                Text(
                  '搜索关键词',
                  style: TextStyle(fontSize: 10, color: AppColors.un3active),
                )
              ],
            ),
          ),
        ),
        Image.asset(
          'assets/icons/msg.png',
          height: 30,
        )
      ],
    );
  }
}
